.class public Lorg/microemu/cldc/datagram/DatagramImpl;
.super Ljava/lang/Object;
.source "DatagramImpl.java"

# interfaces
.implements Ljavax/microedition/io/Datagram;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lorg/microemu/cldc/datagram/DatagramImpl$BufferOutputStream;
    }
.end annotation


# instance fields
.field private dis:Ljava/io/DataInputStream;

.field private dos:Ljava/io/DataOutputStream;

.field private os:Lorg/microemu/cldc/datagram/DatagramImpl$BufferOutputStream;

.field private packet:Ljava/net/DatagramPacket;


# direct methods
.method constructor <init>(I)V
    .locals 3
    .parameter "size"

    .prologue
    .line 100
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 101
    if-gtz p1, :cond_0

    .line 102
    new-instance v0, Ljava/lang/IllegalArgumentException;

    new-instance v1, Ljava/lang/StringBuffer;

    invoke-direct {v1}, Ljava/lang/StringBuffer;-><init>()V

    const-string v2, "Invalid size: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuffer;->append(I)Ljava/lang/StringBuffer;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v0

    .line 104
    :cond_0
    new-instance v0, Ljava/net/DatagramPacket;

    new-array v1, p1, [B

    invoke-direct {v0, v1, p1}, Ljava/net/DatagramPacket;-><init>([BI)V

    iput-object v0, p0, Lorg/microemu/cldc/datagram/DatagramImpl;->packet:Ljava/net/DatagramPacket;

    .line 105
    invoke-direct {p0}, Lorg/microemu/cldc/datagram/DatagramImpl;->initialiseInOut()V

    .line 106
    return-void
.end method

.method constructor <init>([BI)V
    .locals 1
    .parameter "buff"
    .parameter "length"

    .prologue
    .line 116
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 117
    new-instance v0, Ljava/net/DatagramPacket;

    invoke-direct {v0, p1, p2}, Ljava/net/DatagramPacket;-><init>([BI)V

    iput-object v0, p0, Lorg/microemu/cldc/datagram/DatagramImpl;->packet:Ljava/net/DatagramPacket;

    .line 118
    invoke-direct {p0}, Lorg/microemu/cldc/datagram/DatagramImpl;->initialiseInOut()V

    .line 119
    return-void
.end method

.method static access$000(Lorg/microemu/cldc/datagram/DatagramImpl;)Ljava/net/DatagramPacket;
    .locals 1
    .parameter "x0"

    .prologue
    .line 41
    iget-object v0, p0, Lorg/microemu/cldc/datagram/DatagramImpl;->packet:Ljava/net/DatagramPacket;

    return-object v0
.end method

.method private initialiseInOut()V
    .locals 3

    .prologue
    .line 125
    new-instance v0, Lorg/microemu/cldc/datagram/DatagramImpl$BufferOutputStream;

    invoke-direct {v0, p0}, Lorg/microemu/cldc/datagram/DatagramImpl$BufferOutputStream;-><init>(Lorg/microemu/cldc/datagram/DatagramImpl;)V

    iput-object v0, p0, Lorg/microemu/cldc/datagram/DatagramImpl;->os:Lorg/microemu/cldc/datagram/DatagramImpl$BufferOutputStream;

    .line 126
    new-instance v0, Ljava/io/DataOutputStream;

    iget-object v1, p0, Lorg/microemu/cldc/datagram/DatagramImpl;->os:Lorg/microemu/cldc/datagram/DatagramImpl$BufferOutputStream;

    invoke-direct {v0, v1}, Ljava/io/DataOutputStream;-><init>(Ljava/io/OutputStream;)V

    iput-object v0, p0, Lorg/microemu/cldc/datagram/DatagramImpl;->dos:Ljava/io/DataOutputStream;

    .line 127
    new-instance v0, Ljava/io/DataInputStream;

    new-instance v1, Ljava/io/ByteArrayInputStream;

    iget-object v2, p0, Lorg/microemu/cldc/datagram/DatagramImpl;->packet:Ljava/net/DatagramPacket;

    invoke-virtual {v2}, Ljava/net/DatagramPacket;->getData()[B

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/io/ByteArrayInputStream;-><init>([B)V

    invoke-direct {v0, v1}, Ljava/io/DataInputStream;-><init>(Ljava/io/InputStream;)V

    iput-object v0, p0, Lorg/microemu/cldc/datagram/DatagramImpl;->dis:Ljava/io/DataInputStream;

    .line 128
    return-void
.end method


# virtual methods
.method public getAddress()Ljava/lang/String;
    .locals 2

    .prologue
    .line 131
    new-instance v0, Ljava/lang/StringBuffer;

    invoke-direct {v0}, Ljava/lang/StringBuffer;-><init>()V

    iget-object v1, p0, Lorg/microemu/cldc/datagram/DatagramImpl;->packet:Ljava/net/DatagramPacket;

    invoke-virtual {v1}, Ljava/net/DatagramPacket;->getAddress()Ljava/net/InetAddress;

    move-result-object v1

    invoke-virtual {v1}, Ljava/net/InetAddress;->getCanonicalHostName()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    const-string v1, ":"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    iget-object v1, p0, Lorg/microemu/cldc/datagram/DatagramImpl;->packet:Ljava/net/DatagramPacket;

    invoke-virtual {v1}, Ljava/net/DatagramPacket;->getPort()I

    move-result v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(I)Ljava/lang/StringBuffer;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getData()[B
    .locals 1

    .prologue
    .line 135
    iget-object v0, p0, Lorg/microemu/cldc/datagram/DatagramImpl;->packet:Ljava/net/DatagramPacket;

    invoke-virtual {v0}, Ljava/net/DatagramPacket;->getData()[B

    move-result-object v0

    return-object v0
.end method

.method getDatagramPacket()Ljava/net/DatagramPacket;
    .locals 1

    .prologue
    .line 305
    iget-object v0, p0, Lorg/microemu/cldc/datagram/DatagramImpl;->packet:Ljava/net/DatagramPacket;

    return-object v0
.end method

.method public getLength()I
    .locals 1

    .prologue
    .line 139
    iget-object v0, p0, Lorg/microemu/cldc/datagram/DatagramImpl;->packet:Ljava/net/DatagramPacket;

    invoke-virtual {v0}, Ljava/net/DatagramPacket;->getLength()I

    move-result v0

    return v0
.end method

.method public getOffset()I
    .locals 1

    .prologue
    .line 143
    iget-object v0, p0, Lorg/microemu/cldc/datagram/DatagramImpl;->packet:Ljava/net/DatagramPacket;

    invoke-virtual {v0}, Ljava/net/DatagramPacket;->getOffset()I

    move-result v0

    return v0
.end method

.method public readBoolean()Z
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 184
    iget-object v0, p0, Lorg/microemu/cldc/datagram/DatagramImpl;->dis:Ljava/io/DataInputStream;

    invoke-virtual {v0}, Ljava/io/DataInputStream;->readBoolean()Z

    move-result v0

    return v0
.end method

.method public readByte()B
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 188
    iget-object v0, p0, Lorg/microemu/cldc/datagram/DatagramImpl;->dis:Ljava/io/DataInputStream;

    invoke-virtual {v0}, Ljava/io/DataInputStream;->readByte()B

    move-result v0

    return v0
.end method

.method public readChar()C
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 192
    iget-object v0, p0, Lorg/microemu/cldc/datagram/DatagramImpl;->dis:Ljava/io/DataInputStream;

    invoke-virtual {v0}, Ljava/io/DataInputStream;->readChar()C

    move-result v0

    return v0
.end method

.method public readDouble()D
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 196
    iget-object v0, p0, Lorg/microemu/cldc/datagram/DatagramImpl;->dis:Ljava/io/DataInputStream;

    invoke-virtual {v0}, Ljava/io/DataInputStream;->readDouble()D

    move-result-wide v0

    return-wide v0
.end method

.method public readFloat()F
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 200
    iget-object v0, p0, Lorg/microemu/cldc/datagram/DatagramImpl;->dis:Ljava/io/DataInputStream;

    invoke-virtual {v0}, Ljava/io/DataInputStream;->readFloat()F

    move-result v0

    return v0
.end method

.method public readFully([B)V
    .locals 1
    .parameter "b"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 204
    iget-object v0, p0, Lorg/microemu/cldc/datagram/DatagramImpl;->dis:Ljava/io/DataInputStream;

    invoke-virtual {v0, p1}, Ljava/io/DataInputStream;->readFully([B)V

    .line 205
    return-void
.end method

.method public readFully([BII)V
    .locals 1
    .parameter "b"
    .parameter "off"
    .parameter "len"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 208
    iget-object v0, p0, Lorg/microemu/cldc/datagram/DatagramImpl;->dis:Ljava/io/DataInputStream;

    invoke-virtual {v0, p1, p2, p3}, Ljava/io/DataInputStream;->read([BII)I

    .line 209
    return-void
.end method

.method public readInt()I
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 212
    iget-object v0, p0, Lorg/microemu/cldc/datagram/DatagramImpl;->dis:Ljava/io/DataInputStream;

    invoke-virtual {v0}, Ljava/io/DataInputStream;->readInt()I

    move-result v0

    return v0
.end method

.method public readLine()Ljava/lang/String;
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 216
    iget-object v0, p0, Lorg/microemu/cldc/datagram/DatagramImpl;->dis:Ljava/io/DataInputStream;

    invoke-virtual {v0}, Ljava/io/DataInputStream;->readLine()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public readLong()J
    .locals 2
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 220
    iget-object v0, p0, Lorg/microemu/cldc/datagram/DatagramImpl;->dis:Ljava/io/DataInputStream;

    invoke-virtual {v0}, Ljava/io/DataInputStream;->readLong()J

    move-result-wide v0

    return-wide v0
.end method

.method public readShort()S
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 224
    iget-object v0, p0, Lorg/microemu/cldc/datagram/DatagramImpl;->dis:Ljava/io/DataInputStream;

    invoke-virtual {v0}, Ljava/io/DataInputStream;->readShort()S

    move-result v0

    return v0
.end method

.method public readUTF()Ljava/lang/String;
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 228
    iget-object v0, p0, Lorg/microemu/cldc/datagram/DatagramImpl;->dis:Ljava/io/DataInputStream;

    invoke-virtual {v0}, Ljava/io/DataInputStream;->readUTF()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public readUnsignedByte()I
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 232
    iget-object v0, p0, Lorg/microemu/cldc/datagram/DatagramImpl;->dis:Ljava/io/DataInputStream;

    invoke-virtual {v0}, Ljava/io/DataInputStream;->readUnsignedByte()I

    move-result v0

    return v0
.end method

.method public readUnsignedShort()I
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 236
    iget-object v0, p0, Lorg/microemu/cldc/datagram/DatagramImpl;->dis:Ljava/io/DataInputStream;

    invoke-virtual {v0}, Ljava/io/DataInputStream;->readUnsignedShort()I

    move-result v0

    return v0
.end method

.method public reset()V
    .locals 2

    .prologue
    .line 148
    :try_start_0
    iget-object v1, p0, Lorg/microemu/cldc/datagram/DatagramImpl;->os:Lorg/microemu/cldc/datagram/DatagramImpl$BufferOutputStream;

    invoke-virtual {v1}, Lorg/microemu/cldc/datagram/DatagramImpl$BufferOutputStream;->reset()V

    .line 149
    iget-object v1, p0, Lorg/microemu/cldc/datagram/DatagramImpl;->dis:Ljava/io/DataInputStream;

    invoke-virtual {v1}, Ljava/io/DataInputStream;->reset()V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    .line 154
    :goto_0
    return-void

    .line 150
    :catch_0
    move-exception v1

    move-object v0, v1

    .line 152
    .local v0, e:Ljava/io/IOException;
    invoke-virtual {v0}, Ljava/io/IOException;->printStackTrace()V

    goto :goto_0
.end method

.method public setAddress(Ljava/lang/String;)V
    .locals 6
    .parameter "address"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 157
    if-nez p1, :cond_0

    .line 158
    new-instance v3, Ljava/lang/NullPointerException;

    const-string v4, "address cannot be null"

    invoke-direct {v3, v4}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V

    throw v3

    .line 160
    :cond_0
    const/16 v3, 0x3a

    invoke-virtual {p1, v3}, Ljava/lang/String;->indexOf(I)I

    move-result v1

    .line 161
    .local v1, index:I
    const/4 v3, -0x1

    if-ne v1, v3, :cond_1

    .line 162
    new-instance v3, Ljava/lang/IllegalArgumentException;

    new-instance v4, Ljava/lang/StringBuffer;

    invoke-direct {v4}, Ljava/lang/StringBuffer;-><init>()V

    const-string v5, "Missing port in address: "

    invoke-virtual {v4, v5}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v4

    invoke-virtual {v4, p1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-direct {v3, v4}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V

    throw v3

    .line 164
    :cond_1
    const/4 v3, 0x0

    invoke-virtual {p1, v3, v1}, Ljava/lang/String;->substring(II)Ljava/lang/String;

    move-result-object v0

    .line 165
    .local v0, host:Ljava/lang/String;
    add-int/lit8 v3, v1, 0x1

    invoke-virtual {p1, v3}, Ljava/lang/String;->substring(I)Ljava/lang/String;

    move-result-object v2

    .line 166
    .local v2, port:Ljava/lang/String;
    iget-object v3, p0, Lorg/microemu/cldc/datagram/DatagramImpl;->packet:Ljava/net/DatagramPacket;

    invoke-static {v0}, Ljava/net/InetAddress;->getByName(Ljava/lang/String;)Ljava/net/InetAddress;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/net/DatagramPacket;->setAddress(Ljava/net/InetAddress;)V

    .line 167
    iget-object v3, p0, Lorg/microemu/cldc/datagram/DatagramImpl;->packet:Ljava/net/DatagramPacket;

    invoke-static {v2}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I

    move-result v4

    invoke-virtual {v3, v4}, Ljava/net/DatagramPacket;->setPort(I)V

    .line 168
    return-void
.end method

.method public setAddress(Ljavax/microedition/io/Datagram;)V
    .locals 3
    .parameter "reference"

    .prologue
    .line 171
    iget-object v2, p0, Lorg/microemu/cldc/datagram/DatagramImpl;->packet:Ljava/net/DatagramPacket;

    move-object v0, p1

    check-cast v0, Lorg/microemu/cldc/datagram/DatagramImpl;

    move-object v1, v0

    invoke-virtual {v1}, Lorg/microemu/cldc/datagram/DatagramImpl;->getDatagramPacket()Ljava/net/DatagramPacket;

    move-result-object v1

    invoke-virtual {v1}, Ljava/net/DatagramPacket;->getAddress()Ljava/net/InetAddress;

    move-result-object v1

    invoke-virtual {v2, v1}, Ljava/net/DatagramPacket;->setAddress(Ljava/net/InetAddress;)V

    .line 172
    iget-object v1, p0, Lorg/microemu/cldc/datagram/DatagramImpl;->packet:Ljava/net/DatagramPacket;

    check-cast p1, Lorg/microemu/cldc/datagram/DatagramImpl;

    .end local p1
    invoke-virtual {p1}, Lorg/microemu/cldc/datagram/DatagramImpl;->getDatagramPacket()Ljava/net/DatagramPacket;

    move-result-object v2

    invoke-virtual {v2}, Ljava/net/DatagramPacket;->getPort()I

    move-result v2

    invoke-virtual {v1, v2}, Ljava/net/DatagramPacket;->setPort(I)V

    .line 173
    return-void
.end method

.method public setData([BII)V
    .locals 1
    .parameter "buffer"
    .parameter "offset"
    .parameter "len"

    .prologue
    .line 176
    iget-object v0, p0, Lorg/microemu/cldc/datagram/DatagramImpl;->packet:Ljava/net/DatagramPacket;

    invoke-virtual {v0, p1, p2, p3}, Ljava/net/DatagramPacket;->setData([BII)V

    .line 177
    return-void
.end method

.method public setLength(I)V
    .locals 1
    .parameter "len"

    .prologue
    .line 180
    iget-object v0, p0, Lorg/microemu/cldc/datagram/DatagramImpl;->packet:Ljava/net/DatagramPacket;

    invoke-virtual {v0, p1}, Ljava/net/DatagramPacket;->setLength(I)V

    .line 181
    return-void
.end method

.method public skipBytes(I)I
    .locals 1
    .parameter "n"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 240
    iget-object v0, p0, Lorg/microemu/cldc/datagram/DatagramImpl;->dis:Ljava/io/DataInputStream;

    invoke-virtual {v0, p1}, Ljava/io/DataInputStream;->skipBytes(I)I

    move-result v0

    return v0
.end method

.method public write(I)V
    .locals 1
    .parameter "b"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 244
    iget-object v0, p0, Lorg/microemu/cldc/datagram/DatagramImpl;->dos:Ljava/io/DataOutputStream;

    invoke-virtual {v0, p1}, Ljava/io/DataOutputStream;->write(I)V

    .line 245
    return-void
.end method

.method public write([B)V
    .locals 1
    .parameter "b"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 248
    iget-object v0, p0, Lorg/microemu/cldc/datagram/DatagramImpl;->dos:Ljava/io/DataOutputStream;

    invoke-virtual {v0, p1}, Ljava/io/DataOutputStream;->write([B)V

    .line 249
    return-void
.end method

.method public write([BII)V
    .locals 1
    .parameter "b"
    .parameter "off"
    .parameter "len"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 252
    iget-object v0, p0, Lorg/microemu/cldc/datagram/DatagramImpl;->dos:Ljava/io/DataOutputStream;

    invoke-virtual {v0, p1, p2, p3}, Ljava/io/DataOutputStream;->write([BII)V

    .line 253
    return-void
.end method

.method public writeBoolean(Z)V
    .locals 1
    .parameter "v"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 256
    iget-object v0, p0, Lorg/microemu/cldc/datagram/DatagramImpl;->dos:Ljava/io/DataOutputStream;

    invoke-virtual {v0, p1}, Ljava/io/DataOutputStream;->writeBoolean(Z)V

    .line 257
    return-void
.end method

.method public writeByte(I)V
    .locals 1
    .parameter "v"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 260
    iget-object v0, p0, Lorg/microemu/cldc/datagram/DatagramImpl;->dos:Ljava/io/DataOutputStream;

    invoke-virtual {v0, p1}, Ljava/io/DataOutputStream;->writeByte(I)V

    .line 261
    return-void
.end method

.method public writeBytes(Ljava/lang/String;)V
    .locals 1
    .parameter "s"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 264
    iget-object v0, p0, Lorg/microemu/cldc/datagram/DatagramImpl;->dos:Ljava/io/DataOutputStream;

    invoke-virtual {v0, p1}, Ljava/io/DataOutputStream;->writeBytes(Ljava/lang/String;)V

    .line 265
    return-void
.end method

.method public writeChar(I)V
    .locals 1
    .parameter "v"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 268
    iget-object v0, p0, Lorg/microemu/cldc/datagram/DatagramImpl;->dos:Ljava/io/DataOutputStream;

    invoke-virtual {v0, p1}, Ljava/io/DataOutputStream;->writeChar(I)V

    .line 269
    return-void
.end method

.method public writeChars(Ljava/lang/String;)V
    .locals 1
    .parameter "v"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 272
    iget-object v0, p0, Lorg/microemu/cldc/datagram/DatagramImpl;->dos:Ljava/io/DataOutputStream;

    invoke-virtual {v0, p1}, Ljava/io/DataOutputStream;->writeChars(Ljava/lang/String;)V

    .line 273
    return-void
.end method

.method public writeDouble(D)V
    .locals 1
    .parameter "v"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 276
    iget-object v0, p0, Lorg/microemu/cldc/datagram/DatagramImpl;->dos:Ljava/io/DataOutputStream;

    invoke-virtual {v0, p1, p2}, Ljava/io/DataOutputStream;->writeDouble(D)V

    .line 277
    return-void
.end method

.method public writeFloat(F)V
    .locals 1
    .parameter "v"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 280
    iget-object v0, p0, Lorg/microemu/cldc/datagram/DatagramImpl;->dos:Ljava/io/DataOutputStream;

    invoke-virtual {v0, p1}, Ljava/io/DataOutputStream;->writeFloat(F)V

    .line 281
    return-void
.end method

.method public writeInt(I)V
    .locals 1
    .parameter "v"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 284
    iget-object v0, p0, Lorg/microemu/cldc/datagram/DatagramImpl;->dos:Ljava/io/DataOutputStream;

    invoke-virtual {v0, p1}, Ljava/io/DataOutputStream;->writeInt(I)V

    .line 285
    return-void
.end method

.method public writeLong(J)V
    .locals 1
    .parameter "v"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 288
    iget-object v0, p0, Lorg/microemu/cldc/datagram/DatagramImpl;->dos:Ljava/io/DataOutputStream;

    invoke-virtual {v0, p1, p2}, Ljava/io/DataOutputStream;->writeLong(J)V

    .line 289
    return-void
.end method

.method public writeShort(I)V
    .locals 1
    .parameter "v"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 292
    iget-object v0, p0, Lorg/microemu/cldc/datagram/DatagramImpl;->dos:Ljava/io/DataOutputStream;

    invoke-virtual {v0, p1}, Ljava/io/DataOutputStream;->writeShort(I)V

    .line 293
    return-void
.end method

.method public writeUTF(Ljava/lang/String;)V
    .locals 1
    .parameter "str"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .prologue
    .line 296
    iget-object v0, p0, Lorg/microemu/cldc/datagram/DatagramImpl;->dos:Ljava/io/DataOutputStream;

    invoke-virtual {v0, p1}, Ljava/io/DataOutputStream;->writeUTF(Ljava/lang/String;)V

    .line 297
    return-void
.end method
